<?php

namespace App\Services;


abstract class BaseService
{
	const TYPE_QUESTION					= 'question';    //免费咨询
	const TYPE_GROUP_POST				= 'group_post';    //微博动态
	const TYPE_DOC_AUDIT				= 'doc_audit';
	const TYPE_LAWSUIT					= 'lawsuit';
	const TYPE_PAY_TEXT					= 'pay_text';    //图文咨询
	const TYPE_PAY_PHONE				= 'pay_phone';    //电话咨询
	const TYPE_PAY_COMPANY				= 'pay_company';    //小薇企服

	const STATUS_WAIT_PAY				= 'wait_pay';       // 待付款（收费咨询）
	const STATUS_NEW					= 'new';                 // （免费）刚刚创建，但是还没有被抢单		（收费）已付款，律师未受理
	const STATUS_REPLIED				= 'replied';         // 已经有律师抢单的咨询，回复在进行中
	const STATUS_WAIT_FOR_EVALUATION	= 'wait_for_evaluation';   // 已完成-未评价
	const STATUS_COMPLETE				= 'complete';       // 咨询完成，用户已经评价
	const STATUS_CANCELLED				= 'cancelled';     // 咨询取消
	const STATUS_REFUSED				= 'refused';          // （收费）律师已拒绝
	const STATUS_REMOVED				= 'removed';          // 咨询已被删除

	const LAWYER_VISIBLE				= 1;
	const LAWYER_UNVISIBLE				= 0;
	const CUSTOMER_VISIBLE				= 1;
	const CUSTOMER_UNVISIBLE			= 0;

	const TYPE_LIKE_POST 				= 1;	//Like点赞表的type
	const TYPE_LIKE_COMMENT 			= 2;	//Like点赞表的type
	const TYPE_LIKE_USER 				= 3;	//Like点赞表的type
	const TYPE_LIKE_ARTICLE 			= 4;	//Like点赞表的type

	const CITY_CODE_SHANGHAI			= 310100;	//上海市城市编码
	const CITY_CODE_CHONGQING			= 500100;	//重庆市城市编码


	const TYPE_INFO 					= 368;		// 资讯
	const TYPE_LAW 						= 369;		// 法规
	const TYPE_CASE 					= 370;		// 案例
	const TYPE_LIBRARY 					= 371;	// 文库
	const TYPE_DOCUMENT 				= 374;	// 文书下载
	const TYPE_SITEINFO 				= 375;  // 关于我们，网站信息

	const STATUS_APPROVED 				= 1;  // 审核通过
	const STATUS_PENDING 				= 0;   // 有待审核
	const STATUS_UNAPPROVED 			= -1; //审核未通过
	const STATUS_DRAFTS  				= 2;  //草稿箱

	const VISIBILITY_ALL 				= 0; // 所有人
	const VISIBILITY_FOLLOWER 			= 1; // 关注我的人
	const VISIBILITY_PRIVATE 			= 2; // 私人文章

	const STATE_INIT 					= 1;//订单状态：初始状态(待付款)
	const STATE_CANCEL 					= 2;//订单状态：取消
	const STATE_PAID   					= 3;//订单状态：已付款,未完成
	const STATE_DONE   					= 4;//订单状态：完成

	const PAY_STATUS_INIT 				= 0;
	const PAY_STATUS_PAIS 				= 1;

	const CALL_LOG_STATE_FAIL			= 0;//呼叫失败
	const CALL_LOG_STATE_SUCCESS		= 1;//呼叫成功

	const CALL_LOG_TYPE_DOUBLE_CALL_BACK		= 1;//双向回拨
	const CALL_LOG_TYPE_CANCEL_CALL_BACK		= 2;//取消回拨
	const CALL_LOG_TYPE_OUTSIDE_NOTICE			= 3;//外呼通知
	const CALL_LOG_TYPE_TEMPLATE_SMS			= 4;//发送模板短信
	const CALL_LOG_TYPE_VOICE_CODE				= 5;//语音验证码

	const MAX_CALL_TIME 						= 1800; //容连最大呼叫时间
	const MIN_CALL_TIME 						= 30; //容连最小呼叫时间

	const NOTIFICATION_TYPE_CREATE_FREE_POST 			= 1;//发布免费咨询
	const NOTIFICATION_TYPE_REWARD 						= 2;//打赏钱
	const NOTIFICATION_TYPE_PAY_POST_PAY 				= 3;//付费咨询支付订单
	const NOTIFICATION_TYPE_PAY_POST_REPLY_HUANXIN 		= 4;//付费咨询及时通讯(一对一咨询)
	const NOTIFICATION_TYPE_FREE_POST_REPLY				= 5;//免费咨询回复
	const NOTIFICATION_TYPE_LAWYER_POST_CONFIRM 		= 6;//律师确认受理咨询
	const NOTIFICATION_TYPE_LAWYER_ARTICLE_COMMENT 		= 7;//律师文章被评论
	const NOTIFICATION_TYPE_LAWYER_SUCCESS_VERIFY 		= 8;//律师认证审核成功
	const NOTIFICATION_TYPE_GET_POST_COMMENT 			= 9;//收到咨询评价
	protected	$repository;
}